﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EasyStep.Business;

namespace EasyStep.Website.DependencyResolvers
{
    public class UnityDependencyResolver : IDependencyResolver
    {
        public object GetService(Type serviceType)
        {
            return ObjectManager.GetInstanceAsObject(serviceType);
        }
        public IEnumerable<object> GetServices(Type serviceType)
        {            
            return ObjectManager.GetInstancesAsObjects(serviceType);
        }
    }
}